<div id="view-content">
	<div id="posts" class="backend-item posts">
	<br>
	<h2 class="backend-h2"><span class="img"></span>
		<span class="btAdd">Thông tin đăng ký của khách hành
<!--        	<a href="<?php //echo $this->baseUrl('/admin/comment/add/');?>">Thêm mới người dùng</a>-->
        </span>
    </h2>
    <p class="saporator"><br /></p>
    
    <form action="" method="get">
        <p class="search_box">
            <input class="sbt hover focus" type="text" name="search_box_text" title="Nhập vào tiêu đề bài viết cần tìm kiếm"/>
            <input class="sbc input-hover" type="submit" name="search_box_sumit"  value="Tìm"/>
        </p><!-- End .search_box-->
         <p class="saporator sf"><br /></p>
         
        <div class="table_nav">
                <div class="table_nav_left">
                    <select id="tbn_cat" name="tbn_cate">
                        <option value="0" selected="selected">Hiển thị tất cả</option>
                    <?php 
//                    	foreach ($this->menu2s as $menu2) {
//                    		if(isset($_REQUEST['menu2Id']) && $_REQUEST['menu2Id'] == $menu2['menu2Id']){
//                    			echo '<option selected value ="'.$menu2['menu2Id'].'">'.$menu2['tenMenu2'].'</option>';	
//                    		}else
//                    			echo '<option value ="'.$menu2['menu2Id'].'">'.$menu2['tenMenu2'].'</option>';
//                    	}
                    ?>                 
                    </select>
                    
                    <input type="submit" value="Lọc" name="tbn_filter" class="tbn_button input-hover"/> 
                    <input type="submit" value="Xóa" name="cmdDel" class="tbn_button input-hover"/>
                    
                </div><!-- end .table_nav_left -->
                <div class="table_nav_pages">  
                <?php 
                	echo $this->paginationControl($this->paginatorComments,'sliding','paginator.phtml');
                		
                ?>
                </div>
            </div><!-- End .table_nav-->
        <table id="p_comment">
            <thead>
                <tr>
                    <th class="col-1-comment"><input class="check-all" type="checkbox" /></th>
                    <th class="col-2-comment">Nguời góp ý</th>
                    <th class="col-3-comment">Chủ đề</th>
                    <th class="col-4-comment">Nội dung</th>
                    <th class="col-5-comment">Email</th>
                    <th class="col-6-comment">Ngày góp ý</th>
                    <th class="col-7-comment">Xem chi tiết</th>
                </tr>
            </thead>
            <tbody>
            <?php 
            	foreach ($this->paginatorComments as $comment){
//            		$status = ($comment['trangThai'] == 1) ? "Đã đăng" : "Chưa đăng";
//            		if($comment['thungRac'] != 1) continue;
            ?>    
                <tr>
                    <th class="col-1-comment">
                        <input class="sub-check" name="comment-check[]" type="checkbox" value="<?php echo $comment['yKienId'];?>"/>
                    </th>
                    <th class="col-2-comment post_title">
                    	<strong><a href="" class="title_ct"><?php echo $comment['hoTen'];?></a></strong> 
	                    
                    </th>
                    <th class="col-3-comment"><?php echo $comment['chuDe'];?> </th>
                    
                    <th class="col-4-comment"><?php echo  $this->truncate($comment['noiDung'],0,120);?></th>
                    <th class="col-5-comment"><?php echo  $comment['email'];?></th>
                    <th class="col-6-comment comment_title"> <?php echo $comment['ngayYKien']; ?></th>
                    <th class="col-7-comment">
                    	<a href="<?php echo $this->baseUrl('/admin/comment/detail/?yk='.$comment['yKienId']);?>">Xem chi tiết</a>
                    </th>
                </tr>                                          
            <?php 
            	}
            ?>             
            </tbody>
            <tfoot>
                <tr>
                   <th class="col-1-comment"><input class="check-all" type="checkbox" /></th>
                    <th class="col-2-comment">Nguời góp ý</th>
                    <th class="col-3-comment">Chủ đề</th>
                    <th class="col-4-comment">Nội dung</th>
                    <th class="col-5-comment">Email</th>
                    <th class="col-6-comment">Ngày góp ý</th>
                    <th class="col-7-comment">Xem chi tiết</th>
                </tr>
            </tfoot>
        </table>
                
    </form>
</div><!-- end #comments -->
	
</div>